package com.chookss.video.model

import com.chookss.tools.httpForm
import com.chookss.video.response.GetVideoPlayAuthResponse

/**
 * Company:
 * Project:
 * Author: liuhaoge
 * Date: 2021/1/26 15:24
 * Note:
 */
class VideoPlayCountRecorder {

    companion object {
        fun record(videoId: String, seconds: Int) {
            httpForm<GetVideoPlayAuthResponse> {
                url = "api/video/addPlayCount"
                params = mutableMapOf("videoId" to videoId, "playTime" to seconds.toString())
                onSuccess = {
                }
                onError = {

                }
            }
        }
    }
}